<?php

namespace Bean\Flow;

abstract class GenericFlow extends \Bean\Flow {

	public abstract function getFlowId();
	
	public function getGenericId() {
		preg_match( '/Bean\\\Flow\\\([^\\\]+)Flow/', get_class($this), $match );
		return $match[1] . ':' . $this->getFlowId(); 
	}

	public function addItem( $data ) {
		throw new \Exception( 'Not implemented' );
	}
	
	public function getWriter() {
		return 'GenericFlow/Writer';
	}
}
